package com.sunkyc.framework.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunkyc.framework.system.entity.SysMenu;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author sunkyc
 * @since 2022-05-31
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {


    /**
     * 获取最顶层级的父类id
     * @return
     */
    @Select("SELECT MIN(parent_id) FROM sys_menu")
    Long minParentId();





}
